package main.com.util;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.List;




public class MysqlConnector {
	public static void main(String[] args) {
		try {
//			MyConnection myConnection = new MyConnection();
//			Connection conn = myConnection.open();;
//			Statement statement = conn.createStatement();
			String sql = "select username from t_user";
//			ResultSet rs = statement.executeQuery(sql);
//			while(rs.next()){
//				System.out.println(rs.getString(1));
//			}
//			rs.close();
//			conn.close();
			BaseDao baseDao =new BaseDao();
			List list = baseDao.queryList(sql);
			System.out.println(list.get(0));
			baseDao.close();
			System.out.println("lalala");
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
